package com.bflow.dao;

import com.bflow.commons.bean.QueryParam;
import com.bflow.commons.dao.IBaseDao;
import com.bflow.dao.po.BflowDefineProcessPo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 功能：BflowDefineProcess 流程定义-Dao接口
 * 作者：haowen
 * 日期：2018-12-13
 */
@Mapper
@Repository("bflowDefineProcessDao")
public interface BflowDefineProcessDao extends IBaseDao<BflowDefineProcessPo> {

    Integer getLastProcessVersion(@Param("key") String key);


    /**
     * 查询流程列表及任务关联业务分页记录数
     * @param queryParam
     * @return
     */
    long findProcessInstancePageCount(QueryParam queryParam);

    /**
     * 查询流程列表及任务关联业务分页数据
     * @param queryParam
     * @return
     */
    List<BflowDefineProcessPo> findProcessInstancePage(QueryParam queryParam);

}


